package com.woniuxy.cloud.carl.order.client;

import com.woniuxy.cloud.carl.order.client.param.GetServiceLogByConditionParam;
import com.woniuxy.cloud.carl.order.client.param.GetTransByConditionParam;
import com.woniuxy.cloud.carl.order.client.result.ServiceLogDto;
import com.woniuxy.cloud.carl.order.client.result.TransItemDto;
import com.woniuxy.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


@FeignClient(contextId = "expressQueryClient",name = "order",path = "order")
public interface ExpressQueryClient {


    @GetMapping("oneByOrderItemId")
    public Result getOneDetail(@RequestParam("userId") Long userId, @RequestParam("orderItemId") Long orderItemId);

//    @GetMapping("oneTrans")
//    public Result getOneTrans(@RequestParam("transItemId") Long transItemId);

    @GetMapping("transByCondition")
    public Result<List<TransItemDto>> getTransByCondition(@SpringQueryMap GetTransByConditionParam param);

//    @GetMapping("allServiceLog")
//    public Result getAllServiceLog();

    @GetMapping("getServiceLogByStoreId")
    public Result<List<ServiceLogDto>> getServiceLogByStoreId(@SpringQueryMap GetServiceLogByConditionParam param);


}
